﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Lilium
{
	[Serializable]
	public class ArgumentNullOrEmptyException: ArgumentException
	{
		public ArgumentNullOrEmptyException(string paramName)
			: base(FormatMessage(paramName), paramName)
		{
		}

		private static string FormatMessage(string paramName)
		{
			return string.Format(
				Resources.Culture,
				Resources.ArgumentNullOrEmptyException_DefaultMessage_0argument,
				paramName);
		}

		protected ArgumentNullOrEmptyException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}
	}
}